'''
/*
 * @Author: wevsmy 
 * @Date: 2017-10-23 19:23:58 
 * @Last Modified by: wevsmy
 * @Last Modified time: 2017-10-23 19:36:47
 */
'''
from multiprocessing import Process
import time

def test():
    for i in range(5):
        print("---test----")
        time.sleep(1)

p = Process(target=test)
p.start()#让这个p进程开始执行
p.join()

print("----main----")

while True:
    print("----main----")
    time.sleep(1)
